package com.richinfo.eureka;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * 服务注册中心
 * 
* Created by WangXJ
* 2018-10-29 17:12
*/
@EnableEurekaServer//注册服务中心
@SpringBootApplication
public class ServerApplication {
	
	private static Logger logger = LoggerFactory.getLogger(ServerApplication.class); 
	
	public static void main(String[] args) {
		new SpringApplicationBuilder(ServerApplication.class).web(true).run(args);
		
		logger.info("====== EUREKA SERVER START ======");
	}
	
	
}
